# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="A figlet replacement with unicode and color support."
HOMEPAGE="http://libcaca.zoy.org/toilet.html"
SRC_URI="http://libcaca.zoy.org/files/${P}.tar.gz"

LICENSE="WTFPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=">=media-libs/libcaca-0.99_beta10"
RDEPEND=""

src_unpack() {
	unpack ${A}
	cd "${S}"

	# As masterdriverz suggested
	sed -i -e '/^CFLAGS/d' configure.ac || die "sed failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "install failed"
	dodoc README TODO ChangeLog
}
